package jgl.vajra.management.part.mine.activity;

import jgl.vajra.management.R;
import jgl.vajra.management.databinding.ActivityNameAuthenticationBinding;
import jgl.vajra.management.listener.MyToolbarViewListener;
import jgl.vajra.management.part.mine.contract.NameAuthenticationContract;
import jgl.vajra.management.part.mine.viewModel.NameAuthenticationViewModel;
import jgl.vajra.management.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.management.widget.mvvm.view.BaseMVVMActivity;
import jgl.vajra.management.widget.utils.ToastUtils;

@CreateViewModel(NameAuthenticationViewModel.class)
public class NameAuthenticationActivity extends BaseMVVMActivity<NameAuthenticationViewModel, ActivityNameAuthenticationBinding> implements NameAuthenticationContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.activity_name_authentication;
    }

    @Override
    public void initView() {
        super.initView();
        mBinding.setView(this);

        mBinding.toolbar.setMyToolbarViewListener(new MyToolbarViewListener(){
            @Override
            public void onRightTextClick() {
                super.onRightTextClick();
                ToastUtils.showShort("点击了");
            }
        });
    }

}
